package cn.edu.zut.service.Impl;

import cn.edu.zut.dao.ContactDao;
import cn.edu.zut.domain.Contact;
import cn.edu.zut.domain.Dep;
import cn.edu.zut.service.ContactService;
import cn.edu.zut.service.DepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContactServiceImpl implements ContactService {
    @Autowired
    private ContactDao dao;
    @Override
    public List<Contact> findAll() {
        return dao.findAll();
    }
    @Override
    public  void insertOne(Contact contact) throws Exception {dao.insertOne(contact);}
}
